<template>
  <div class="showRecommends">
    <div class="content_bg">
      <div class="recommend_list content">
        <div class="left">
          <div class="left_content">
            <div class="recommend_item"
                 v-for="(recommendshow,index) in recommendlist"
                 :key="recommendshow.projectExtendVO.projectId"
                 @click="goShowDetails(recommendshow.projectExtendVO.projectId)"
                 v-show="index%2==0">
              <div class="item_content">
                <div class="poster_wrap">
                  <img :src="recommendshow.posterUrl"
                       alt="">
                </div>
                <div class="content_wrap">
                  <div class="label_wrap">
                    <div class="performance_label_wrapper">
                      <span class="performance_label"
                            v-show="recommendshow.seatType">选座购票</span>
                    </div>
                  </div>
                  <div class="title">【{{recommendshow.cityName}}】 {{recommendshow.name}}</div>
                  <div class="time">
                    {{recommendshow.showTimeRange}}
                  </div>
                  <div class="price">
                    <span class="price_number">&yen; {{recommendshow.lowestPrice}}</span>
                    <span class="price_number price_label">起</span>
                  </div>
                </div>
                <div class="wrapper-modal"></div>
              </div>
            </div>
          </div>
        </div>
        <div class="right">
          <div class="right_content">
            <div class="recommend_item"
                 v-for="(recommendshow,index) in recommendlist"
                 :key="recommendshow.projectExtendVO.projectId"
                 v-show="index%2==1"
                 @click="goShowDetails(recommendshow.projectExtendVO.projectId)">
              <div class="item_content">
                <div class="poster_wrap">
                  <img :src="recommendshow.posterUrl"
                       alt="">
                </div>
                <div class="content_wrap">
                  <div class="label_wrap">
                    <div class="performance_label_wrapper">
                      <span class="performance_label">选座购票</span>
                    </div>
                  </div>
                  <div class="title">【{{recommendshow.cityName}}】 {{recommendshow.name}}</div>
                  <div class="time">{{recommendshow.showTimeRange}}</div>
                  <div class="price">
                    <span class="price_number">&yen; {{recommendshow.lowestPrice}}</span>
                    <span class="price_number price_label">起</span>
                  </div>
                </div>
                <div class="wrapper-modal"></div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!-- <div>暂时没有更多的推荐哦</div> -->
    </div>
  </div>
</template>
<script>
export default {
  props: {
    recommendlist: Array
  },
  // data: () => ({})
  data () {
    return {
    }
  }
}
</script>
<style lang="scss" scoped>
// 为你推荐
.content_bg {
  margin: 0 0.9375rem 0.9375rem;
  text-align: left;
}
.content {
  clear: both;
  overflow: hidden;
  .left {
    float: left;
    width: 48.7%;
  }
  .recommend_item {
    .item_content {
      position: relative;
      margin-bottom: 0.625rem;
      .poster_wrap {
        border-radius: 0.375rem 0.375rem 0 0;
        position: relative;
        background-color: rgb(255, 255, 255);
        img {
          height: 14.0625rem;
          border-radius: 0.375rem 0.375rem 0 0;
          width: 100%;
        }
      }
      .content_wrap {
        padding: 0 0.625rem 0.625rem;
        .label_wrap {
          display: flex;
          margin-top: 0.5rem;
          .performance_label_wrapper {
            display: inline-flex;
          }
          .performance_label {
            display: inline-flex;
            height: 1rem;
            background: #fef0ef;
            border-radius: 0.125rem;
            padding: 0 0.125rem;
            font-size: 0.625rem;
            color: #f03d37;
            line-height: 1rem;
          }
        }
        .title {
          max-height: 3rem;
          margin-top: 0.375rem;
          font-size: 0.8125rem;
          line-height: 1.1875rem;
          font-weight: 700;
          color: #333;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
          text-overflow: ellipsis;
          overflow: hidden;
        }
        .time {
          margin-top: 0.25rem;
          font-size: 0.75rem;
          color: #999;
          line-height: 1.0625rem;
        }
        .price {
          display: flex;
          height: 1.1875rem;
          margin-top: 0.4375rem;
          font-size: 1rem;
          font-weight: 700;
          color: #f03d37;
          line-height: 1.1875rem;
          font-family: DINAlternate-Bold, Roboto-Medium;
          .price_label {
            height: 1.1875rem;
            font-size: 0.75rem;
            font-weight: 400;
            color: #f03d37;
            line-height: 1.3125rem;
            padding-left: 0.1875rem;
          }
        }
      }
      .wrapper-modal {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        border: 0.03125rem solid rgba(0, 0, 0, 0.15);
        border-radius: 0.375rem;
      }
    }
  }
  .right {
    float: right;
    width: 48.7%;
  }
  // .right_content {
  // }
}
</style>
